package com.ft.security.model;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @copyright (C), 2015-2019, XXX有限公司
 * @fileName: JwtToken
 * @author: 李阳
 * @date: 2019/7/1 23:13
 * @description: Jwt令牌
 * @history: <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
@Data
public class JwtToken implements Serializable {
    private static final long serialVersionUID = -8353085705230355798L;

    @JSONField(name = "access_token")
    @ApiModelProperty(value = "Token")
    private String accessToken;

    @JSONField(name = "token_type")
    @ApiModelProperty(value = "Token请求前缀")
    private String tokenType;

    @JSONField(name = "expires_in")
    @ApiModelProperty(value = "Token过期时间,单位秒")
    private Long expiresIn;
}
